home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xmu / Atoms.h next >
C/C++ Source or Header  |  2006-04-12  |  4KB  |  127 lines

  1. /* $Xorg: Atoms.h,v 1.4 2001/02/09 02:03:51 xorgcvs Exp $ */
  2.  
  3. /* 
  4.  
  5. Copyright 1988, 1998  The Open Group
  6.  
  7. Permission to use, copy, modify, distribute, and sell this software and its
  8. documentation for any purpose is hereby granted without fee, provided that
  9. the above copyright notice appear in all copies and that both that
  10. copyright notice and this permission notice appear in supporting
  11. documentation.
  12.  
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15.  
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  19. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22.  
  23. Except as contained in this notice, the name of The Open Group shall not be
  24. used in advertising or otherwise to promote the sale, use or other dealings
  25. in this Software without prior written authorization from The Open Group.
  26.  
  27. */
  28. /* $XFree86: xc/lib/Xmu/Atoms.h,v 1.6 2001/01/17 19:42:53 dawes Exp $ */
  29.  
  30. /*
  31.  * The interfaces described by this header file are for miscellaneous utilities
  32.  * and are not part of the Xlib standard.
  33.  */
  34.  
  35. #ifndef _XMU_ATOMS_H_
  36. #define _XMU_ATOMS_H_
  37.  
  38. #include <X11/Intrinsic.h>
  39. #include <X11/Xfuncproto.h>
  40.  
  41. typedef struct _AtomRec *AtomPtr;
  42.  
  43. extern AtomPtr
  44.     _XA_ATOM_PAIR,
  45.     _XA_CHARACTER_POSITION,
  46.     _XA_CLASS,
  47.     _XA_CLIENT_WINDOW,
  48.     _XA_CLIPBOARD,
  49.     _XA_COMPOUND_TEXT,
  50.     _XA_DECNET_ADDRESS,
  51.     _XA_DELETE,
  52.     _XA_FILENAME,
  53.     _XA_HOSTNAME,
  54.     _XA_IP_ADDRESS,
  55.     _XA_LENGTH,
  56.     _XA_LIST_LENGTH,
  57.     _XA_NAME,
  58.     _XA_NET_ADDRESS,
  59.     _XA_NULL,
  60.     _XA_OWNER_OS,
  61.     _XA_SPAN,
  62.     _XA_TARGETS,
  63.     _XA_TEXT,
  64.     _XA_TIMESTAMP,
  65.     _XA_USER,
  66.     _XA_UTF8_STRING;
  67.  
  68. #define XA_ATOM_PAIR(d)        XmuInternAtom(d, _XA_ATOM_PAIR)
  69. #define XA_CHARACTER_POSITION(d) XmuInternAtom(d, _XA_CHARACTER_POSITION)
  70. #define XA_CLASS(d)        XmuInternAtom(d, _XA_CLASS)
  71. #define XA_CLIENT_WINDOW(d)    XmuInternAtom(d, _XA_CLIENT_WINDOW)
  72. #define XA_CLIPBOARD(d)        XmuInternAtom(d, _XA_CLIPBOARD)
  73. #define XA_COMPOUND_TEXT(d)    XmuInternAtom(d, _XA_COMPOUND_TEXT)
  74. #define XA_DECNET_ADDRESS(d)    XmuInternAtom(d, _XA_DECNET_ADDRESS)
  75. #define XA_DELETE(d)        XmuInternAtom(d, _XA_DELETE)
  76. #define XA_FILENAME(d)        XmuInternAtom(d, _XA_FILENAME)
  77. #define XA_HOSTNAME(d)        XmuInternAtom(d, _XA_HOSTNAME)
  78. #define XA_IP_ADDRESS(d)    XmuInternAtom(d, _XA_IP_ADDRESS)
  79. #define XA_LENGTH(d)        XmuInternAtom(d, _XA_LENGTH)
  80. #define XA_LIST_LENGTH(d)    XmuInternAtom(d, _XA_LIST_LENGTH)
  81. #define XA_NAME(d)        XmuInternAtom(d, _XA_NAME)
  82. #define XA_NET_ADDRESS(d)    XmuInternAtom(d, _XA_NET_ADDRESS)
  83. #define XA_NULL(d)        XmuInternAtom(d, _XA_NULL)
  84. #define XA_OWNER_OS(d)        XmuInternAtom(d, _XA_OWNER_OS)
  85. #define XA_SPAN(d)        XmuInternAtom(d, _XA_SPAN)
  86. #define XA_TARGETS(d)        XmuInternAtom(d, _XA_TARGETS)
  87. #define XA_TEXT(d)        XmuInternAtom(d, _XA_TEXT)
  88. #define XA_TIMESTAMP(d)        XmuInternAtom(d, _XA_TIMESTAMP)
  89. #define XA_USER(d)        XmuInternAtom(d, _XA_USER)
  90. #define XA_UTF8_STRING(d)    XmuInternAtom(d, _XA_UTF8_STRING)
  91.  
  92. _XFUNCPROTOBEGIN
  93.  
  94. char *XmuGetAtomName
  95. (
  96.  Display    *dpy,
  97.  Atom        atom
  98.  );
  99.  
  100. Atom XmuInternAtom
  101. (
  102.  Display    *dpy,
  103.  AtomPtr    atom_ptr
  104.  );
  105.  
  106. void XmuInternStrings
  107. (
  108.  Display    *dpy,
  109.  String        *names,
  110.  Cardinal        count,
  111.  Atom        *atoms_return
  112. );
  113.  
  114. AtomPtr XmuMakeAtom
  115. (
  116.  _Xconst char    *name
  117.  );
  118.  
  119. char *XmuNameOfAtom
  120. (
  121.  AtomPtr    atom_ptr
  122.  );
  123.  
  124. _XFUNCPROTOEND
  125.  
  126. #endif /* _XMU_ATOMS_H_ */
  127.